package com.linkgie.galaxyframework.persistence.mongodb;

import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;

import com.linkgie.galaxyframework.data.AuditableObject;
import com.linkgie.galaxyframework.persistence.AuditablePO;

/**
 * 可审计、可校验的持久化对象；
 * <p>
 * 
 * 实现了 {@link AuditableObject} 定义的审计字段；
 * 
 * @author huanghaiquan
 *
 */
public class AuditableChecksumUniqueMongoPO extends ChecksumUniqueMongoPO implements AuditablePO{
	
	
	@CreatedBy
	private String createdBy;
	
	@CreatedDate
	private long createdTime;
	
	@LastModifiedBy
	private String lastModifiedBy;
	
	@LastModifiedDate
	private long lastModifiedTime;
	

	@Override
	public void setCreatedTime(long createdTime) {
		this.createdTime = createdTime;
	}

	@Override
	public void setLastModifiedTime(long lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}

	@Override
	public long getCreatedTime() {
		return createdTime;
	}

	@Override
	public long getLastModifiedTime() {
		return lastModifiedTime;
	}

	@Override
	public String getCreatedBy() {
		return createdBy;
	}

	@Override
	public String getLastModifiedBy() {
		return lastModifiedBy;
	}


	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public void setLastModifiedBy(String lastModifiedBy) {
		this.lastModifiedBy = lastModifiedBy;
	}

	
}
